package com.sl.core.engine.datasource.func;

import cn.hutool.core.util.ObjectUtil;
import org.beetl.core.Context;
import org.beetl.core.Function;

public class EQFunction implements Function {
    @Override
    public Object call(Object[] paras, Context ctx) {


        if (paras.length == 0)
            return false;
        if (paras.length == 1) {
            return false;
        }
        if (paras.length == 2) {
            Object result1 = paras[0];
            Object result2= paras[1];

            return ObjectUtil.equals(result1,result2);
        }

        return false;

    }
}
